package com.xauto.pioneer.appuser.model;

import org.json.JSONObject;

/**
 * 分享信息
 * Created by Ellis on 26/05/2017.
 */
public class ShareInfo extends BaseModel<ShareInfo> {

    /** 标题*/
    public String title;
    /** 内容*/
    public String content;
    /** 分享链接*/
    public String share_url;
    /** 分享图片*/
    public Image share_image;
    @Override
    public ShareInfo parse(JSONObject jsonObject) {
        if(jsonObject != null) {
            title = jsonObject.optString("title");
            content = jsonObject.optString("content");
            share_url = jsonObject.optString("share_url");
            share_image = new Image().parse(jsonObject.optJSONObject("share_image"));
            return this;
        }
        return null;
    }
}
